# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
_php=php7
pkgname=${_php}-pear-net_socket
_pkgreal=Net_Socket
pkgver=1.2.2
pkgrel=0
pkgdesc="Network Socket Interface"
url="http://pear.php.net/package/$_pkgreal"
arch="noarch"
license="PHP"
depends="${_php}-pear"
options="!check"
source="http://download.pear.php.net/package/$_pkgreal-$pkgver.tgz"
builddir="$srcdir"/$_pkgreal-$pkgver

package() {
	_phpdir="usr/share/${_php}"
	cd "$builddir"
	install -d "$pkgdir"/$_phpdir/PEAR
	mv Net "$pkgdir"/$_phpdir/PEAR
}

sha512sums="fd415fbd4a6801b63cda3168ff275fdeae233a3cc4c62f9bfe561f83f24f89795a7e7ad862641a73bb6d6e3c0da8b56cd00e7e7a1db616de040ea7883d84caa5  Net_Socket-1.2.2.tgz"
